package com.bootdo.fx.service;

import com.bootdo.fx.domain.OrderInfoDO;
import com.bootdo.fx.domain.UserInfoDO;

import java.util.List;
import java.util.Map;

/**
 * app_goods_order
 * 
 * @author 袁飞龙
 * @email 1992lcg@163.com
 * @date 2017-11-30 17:12:20
 */
public interface OrderInfoService {
	
	OrderInfoDO get(Long orderId);
	
	List<OrderInfoDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OrderInfoDO orderInfo);
	
	int update(OrderInfoDO orderInfo);
	
	int remove(Long orderId);
	
	int batchRemove(Long[] orderIds);

    int ship(OrderInfoDO orderInfo);

	boolean submitOrder(OrderInfoDO orderInfo, UserInfoDO userInfo, String shopCertIds, String addressId);

	OrderInfoDO submitOrder2(OrderInfoDO orderInfo, UserInfoDO userInfo, String shopCertIds);

	void aotuBalanceOrders();

	OrderInfoDO buyOrder(OrderInfoDO orderInfo, UserInfoDO userInfo, String goodId, String num);

	List<Map<String, Object>> listOrders(Map<String, Object> map);
}

